package com.mdxq.first.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TeaController {

    @GetMapping("/tea/{id}")
    @ResponseBody
    public String getById(@PathVariable int id) {
        System.out.println("id="+id+"哈哈哈哈哈哈哈哈");
        return "springboot";
    }
}